package com.bailv.macro;

import java.util.HashMap;
import java.util.Map;

public class AirControlCMD {

	public enum ControlType {
		UP, DOWN, OPEN, CLOSE, AUTO, REFRIGERATION, DESICCANT, HEAT, 
		VENTILATION, STRONG, LEARN, LEARN_UP, LEARN_DOWN, LEARN_OPEN, 
		LEARN_CLOSE, LEARN_AUTO, LEARN_REFRIGERATION, LEARN_DESICCANT, 
		LEARN_HEAT, LEARN_VENTILATION, LEARN_STRONG,CONTROL;
	};
	
	private static final Map<ControlType, String> cmdS = new HashMap<ControlType, String>() {
		{
			put(ControlType.OPEN, "h019999999999999999999");
			put(ControlType.CLOSE, "h022999999999999999999");
			put(ControlType.UP, "h018999999999999999999");
			put(ControlType.DOWN, "h020999999999999999999");
			put(ControlType.AUTO, "h021999999999999999999");
			put(ControlType.DESICCANT, "h024999999999999999999");
			put(ControlType.REFRIGERATION, "h027999999999999999999");
			put(ControlType.STRONG, "h030999999999999999999");
			put(ControlType.HEAT, "h033999999999999999999");
			put(ControlType.VENTILATION, "h025999999999999999999");
			
			put(ControlType.CONTROL, "q099999999999999999999");

			put(ControlType.LEARN, "i099999999999999999999");
			put(ControlType.LEARN_AUTO, "b021999999999999999999");
			put(ControlType.LEARN_CLOSE, "b019999999999999999999");
			put(ControlType.LEARN_DESICCANT, "b024999999999999999999");
			put(ControlType.LEARN_DOWN, "b020999999999999999999");
			put(ControlType.LEARN_HEAT, "b033999999999999999999");
			put(ControlType.LEARN_OPEN, "h019999999999999999999");
			put(ControlType.LEARN_REFRIGERATION, "h027999999999999999999");
			put(ControlType.LEARN_STRONG, "b030999999999999999999");
			put(ControlType.LEARN_UP, "b018999999999999999999");
			put(ControlType.LEARN_VENTILATION, "b025999999999999999999");
		}

	};
	
	public static String getCmd(ControlType controlType){
		return cmdS.get(controlType);
	}
}
